package command;

public class Army {
    private Soldier soldier;

    public Army(Soldier soldier) {
        this.soldier = soldier;
    }

    public void attack() {
        soldier.setAttack("士兵进攻");
        System.out.println("士兵进攻");
    }

    public void retreat() {
        soldier.setRetreat("士兵撤退");
        System.out.println("士兵撤退");
    }


    public void undo(){

    }
}
